<template>
    <div>
        <p>姓名：{{user.name}}</p>
        <p>年纪：{{user.age}}</p>
    </div>
</template>

<script lang='ts' setup>
import { userInfo } from '~/composables/userInfo'

const user = userInfo()
</script>